package com.tianyang.yukuaifuzs.module.specialunit.unit;

import android.text.Spanned;

import com.tianyang.yukuaifuzs.module.specialunit.BaseSpecialUnit;

/**
 * Description：Special Raw Span Unit
 * Created by 薛勇军 on 2018/6/25.
 */

public class SpecialRawSpanUnit extends BaseSpecialUnit {
    private Object spanObj;
    private int flags;

    public SpecialRawSpanUnit(String specialText, Object spanObj) {
        super(specialText);
        this.spanObj = spanObj;
        this.flags = Spanned.SPAN_EXCLUSIVE_EXCLUSIVE;
    }

    public SpecialRawSpanUnit(String specialText, Object spanObj, int flags) {
        super(specialText);
        this.spanObj = spanObj;
        this.flags = flags;
    }

    public Object getSpanObj() {
        return spanObj;
    }

    public int getFlags() {
        return flags;
    }

}
